package com.meteor.user.convert;

import com.meteor.user.entity.SysDepartment;
import com.meteor.user.entity.SysPost;
import com.meteor.user.vo.SysDepartmentVO;
import com.meteor.user.vo.SysPostVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface SysDepartmentConvert {

    SysDepartmentConvert INSTANCE = Mappers.getMapper(SysDepartmentConvert.class);

    SysDepartmentVO convert(SysDepartment entity);

    SysDepartment convert(SysDepartmentVO vo);

    List<SysDepartmentVO> convertList(List<SysDepartment> list);

}
